﻿using System.Web.Mvc;
using HitchSite.Models.Home;

namespace HitchSite.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var model = new HomeIndexModel();
            model.TripsShort.Add(new TripShortDesc {Id = 0, From = "Montreal", To="Ottawa", Km="200", NbOfPartisipants = 1});
            model.TripsShort.Add(new TripShortDesc { Id = 1, From = "Ottawa", To = "Montreal", Km = "200", NbOfPartisipants = 2 });
            model.TripsShort.Add(new TripShortDesc { Id = 2, From = "Montreal", To = "Niagara", Km = "700", NbOfPartisipants = 5, IsRoundTrip = true});
            model.TripsShort.Add(new TripShortDesc { Id = 3, From = "Montreal", To = "Toronto", Km = "500", NbOfPartisipants = 1 });

            ViewData.Model = model;

            return View();
        }

        public ActionResult TripInfo(int id)
        {
            return View();
        }

        public ActionResult TripNew()
        {
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
